package com.ddtech.business.train.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ddtech.business.train.entity.TrainPlan;
import com.ddtech.business.train.query.TrainPlanQuery;
import com.ddtech.business.train.res.TrainPlanVo;

/**
 * <p>
 * 培训计划表 服务类
 * </p>
 *
 * @author bin_pu
 * @since 2023-02-06
 */
public interface TrainPlanService extends IService<TrainPlan> {
    /**
     * 分页查询列表
     * @param trainPlanQuery
     * @return
     */
    Object pageList(TrainPlanQuery trainPlanQuery);

    /**
     * 创建
     * @param trainPlanVo
     * @return
     */
    void create(TrainPlanVo trainPlanVo);

    /**
     * 删除
     * @param id
     */
    void del(String id);

    /**
     * 详情
     * @param id
     * @return
     */
    TrainPlanVo info(String id);

    /**
     * 分页查询列表
     * @param trainPlanQuery
     * @return
     */
    Object getMyTrainPlanList(TrainPlanQuery trainPlanQuery);

    /**
     * 分页查询列表
     * @param trainPlanQuery
     * @return
     */
    Object getMyTrainPlanAndMyTaskNum(TrainPlanQuery trainPlanQuery);

    Object getTrainInfo(String id);

    /**
     * 培训完成情况
     * @param pageInfo
     * @param trainId
     * @param userName
     * @return
     */
    Object trainPlanSchedule(IPage pageInfo, String trainId, String userName);

    /**
     * 培训考核情况
     * @param trainId
     * @param username
     * @param pageInfo
     * @return
     */
    Object getScheduleCheckList(String trainId, String username, IPage pageInfo);
}
